stubdom: make stubdom-dm exit properly
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 29 Oct 2009 14:04:45 +0000 (14:04 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 29 Oct 2009 14:04:45 +0000 (14:04 +0000)
commitdde521066b79252110b5051b86b502003752fffa
treeee183ba5961ce810376f38ef238c420690c55b02
parentdd11df9b815419c73c2845df5e4f8433cb43d665
stubdom: make stubdom-dm exit properly

The built-in bash command wait should be able to take a pid argument
and just wait for the specified process to die, but it currently has a
bug and what actually does is waiting for the death of all the
children.  For this reason the stubdom-dm script doesn't exit properly
after stubdom destruction.  This patch solves the issue spawning only
one child, removing the sleep subprocess workaround that was used to
create a usable stdin for "xm console" and replacing it with a fifo.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
stubdom/stubdom-dm